package com.gxa.ibear.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author gxa
 * @since 2023-11-21
 */
@Getter
@Setter
@TableName("tb_coupon")
@ApiModel(value = "Coupon对象", description = "")
public class Coupon implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("优惠劵id")
      @TableId(value = "coupon_id", type = IdType.AUTO)
    private Integer couponId;

    @ApiModelProperty("优惠劵名字")
    @TableField("coupon_name")
    private String couponName;

    @ApiModelProperty("优惠劵图片")
    @TableField("coupon_image")
    private String couponImage;

    @ApiModelProperty("优惠券创建时间")
    @TableField("coupon_created")
    private LocalDateTime couponCreated;

    @ApiModelProperty("是否上架 默认0未上架 1上架")
    @TableField("coupon_inUse")
    private Boolean couponInuse;

    @ApiModelProperty("优惠劵描述")
    @TableField("coupon_desc")
    private String couponDesc;

    @ApiModelProperty("优惠券满多少钱")
    @TableField("coupon_over")
    private BigDecimal couponOver;

    @ApiModelProperty("优惠券减多少")
    @TableField("coupon_minus")
    private BigDecimal couponMinus;

    @ApiModelProperty("优惠券使用时间")
    @TableField("coupon_used")
    private LocalDateTime couponUsed;


}
